﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_HomePage_Competition : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        getAllCompetition();
        getimg();
    }

    private void getAllCompetition()
    {
        CommonBUS com = new CommonBUS();
        collectionPager1.PageSize = 4;
        collectionPager1.DataSource = com.GetAllCompetitionOrder().DefaultView;
        collectionPager1.BindToControl = dtListCompetition;
        dtListCompetition.DataSource = collectionPager1.DataSourcePaged;
    }

    private void getimg()
    {
        CommonBUS com = new CommonBUS();
        collectionPager.PageSize = 4;
        collectionPager.DataSource = com.GetImg().DefaultView;
        collectionPager.BindToControl = dtListImg;
        dtListImg.DataSource = collectionPager.DataSourcePaged;
    }

}